package com.ruiyi.adrobot.web.controller.login;

import com.ruiyi.adrobot.dao.shop.ShopRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LoginController {
    @Autowired
    private ShopRepository shopRepository;

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String toLogin() {
        return "login/login";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String toIndexIframe() {
        return "layout/index_iframe";
    }

    @RequestMapping(value = "/toWelcome", method = RequestMethod.GET)
    public String toWelcome() {
        return "welcome";
    }

}
